import request from '@/utils/request'
import { paramNoNull } from '@/utils/ParamFilter'

export function page(data) {
  return request({
    url: '/admin/bee-manage/sys-user-login/page',
    method: 'get',
    params: paramNoNull(data)
  })
}

export function deleteById(id) {
  return request({
    url: '/admin/bee-manage/sys-user-login/byId/' + id,
    method: 'delete'
  })
}
export function deleteByUserName(userName) {
  return request({
    url: '/admin/bee-manage/sys-user-login/byUserName/' + userName,
    method: 'delete'
  })
}
export function getTokenInfo(data) {
  return request({
    url: '/admin/bee-manage/sys-user-login/getTokenInfo',
    method: 'get',
    params: paramNoNull(data)
  })
}
